package com.cy.sys.controller;

import com.cy.common.pojo.JsonResult;
import com.cy.sys.pojo.PageObject;
import com.cy.sys.pojo.sysLog;
import com.cy.sys.service.logService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
@RequestMapping("/log/")
public class sysLogController {

    @Autowired
    private logService log;

    @RequestMapping("doFindPageObjects")
    @ResponseBody
    public JsonResult doFindPageObjects(String username,Long pageCurrent){

        return new JsonResult(log.findPageObjects(username,pageCurrent));

    }
    @RequestMapping("doDeleteObjects")
    @ResponseBody
    public JsonResult doDeleteObjects(Integer... ids){
        log.doDeleteObjects(ids);
        return new JsonResult("delete ok");
    }


}
